var express = require('express');
var router = express.Router();

var robots = require('../requests/robots');
var rss = require('../requests/rss');

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.render('chat', { content: robots('hi!', 'abc') });
  
});

router.get('/ask/:message', function(req, res, next) {
  //console.log(req.params.message);
  res.render('chat', { content: robots(req.params.message, 'abc') });
  
});

router.get('/rss', function(req, res, next) {
	res.send(rss.slice(0,5));
})

module.exports = router;
